#ifndef _PWM_H
#define _PWM_H
#include "headfile.h"
/*********************************************************************************
			  ___   _     _____  _____  _   _  _____  _____  _   __
			 / _ \ | |   |_   _||  ___|| \ | ||_   _||  ___|| | / /
			/ /_\ \| |     | |  | |__  |  \| |  | |  | |__  | |/ /
			|  _  || |     | |  |  __| | . ` |  | |  |  __| |    \
			| | | || |_____| |_ | |___ | |\  |  | |  | |___ | |\  \
			\_| |_/\_____/\___/ \____/ \_| \_/  \_/  \____/ \_| \_/

 *	******************************************************************************/
void PWM_Init(u16 arr, u16 psc);
void TIM_SetTIM2Compare1(u32 compare);
void TIM_SetTIM2Compare2(u32 compare);
void PWM_RUN(u16 motor,u8 dir);

#endif
